<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class Strap
{
    function __construct()
    {
        //echo "<pre>"; print_r($_SERVER);
       
    }

    function load_me()
    {
         $load = str_replace('index.php/','', strstr($_SERVER['PHP_SELF'], 'index.php'));
        $arr1[]=$_SERVER['HTTP_HOST'].str_replace('/index.php','',$_SERVER['SCRIPT_NAME']);
        $arr2= explode('/',$load);

        $arr=array_merge($arr1, $arr2);
        //phpinfo(); print_r($arr);

        

        return $arr;
    }
}
?>
